﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="GuessTheWordsEditor.MainWindow"
        Title="GuessTheWordTool by 77Studio" Height="600" Width="800" ResizeMode="CanMinimize">
    <Grid>
        <Grid HorizontalAlignment="Left" Margin="8,8,0,8" Width="320">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.047*"/>
                <RowDefinition Height="0.596*"/>
                <RowDefinition Height="0.029*"/>
                <RowDefinition Height="0.328*"/>
            </Grid.RowDefinitions>
            <Border BorderThickness="1,0,1,1" BorderBrush="Black" Height="320" Width="320" VerticalAlignment="Top" Grid.Row="1">
                <Canvas x:Name="canvas1" Background="#FFEFEFEF" />
            </Border>
            <Grid>
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFF9E9E" Offset="0"/>
                        <GradientStop Color="#FFF12844" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <TextBlock TextWrapping="Wrap" d:LayoutOverrides="Width" VerticalAlignment="Center" FontSize="16" FontFamily="Arial" HorizontalAlignment="Center" Text="效果预览" Foreground="White"/>
            </Grid>
            <Button x:Name="btnExportMap" Content="导出文件" HorizontalAlignment="Left" Height="30" VerticalAlignment="Bottom" Width="77" Grid.Row="3"/>
            <Button IsEnabled="False" Content="载入文件" Height="30" Margin="81,0,0,0" Grid.Row="3" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="77" d:LayoutOverrides="HorizontalAlignment"/>
            <TextBlock Grid.Row="2" TextWrapping="Wrap" Text="*右键单击单元格清空数据" Margin="0,0,0,2.377" d:LayoutOverrides="Height"/>
            <StackPanel Grid.Row="3" VerticalAlignment="Top" HorizontalAlignment="Left" Orientation="Horizontal" Margin="0,10,0,0">
            	<TextBlock TextWrapping="Wrap" Text="*数据源选择："/>
            	<RadioButton x:Name="chkHorizon" Content="横向" HorizontalAlignment="Center" VerticalAlignment="Center" GroupName="srcDir" IsChecked="True"/>
            	<RadioButton x:Name="chkVertical" Content="竖向" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,0,0,0" GroupName="srcDir"/>
            </StackPanel>
            <Button x:Name="btnClear" Content="清空" HorizontalAlignment="Right" Height="30" Margin="0,2.918,0,0" Grid.Row="3" VerticalAlignment="Top" Width="77"/>
        </Grid>
        <Grid Margin="343,8,8,8">
            <Grid.RowDefinitions>
                <RowDefinition Height="24.75"/>
                <RowDefinition Height="0.409*"/>
                <RowDefinition Height="0.431*"/>
                <RowDefinition Height="0.16*"/>
            </Grid.RowDefinitions>
            <DataGrid x:Name="gridHWords" AutoGenerateColumns="False" ItemsSource="{Binding}" IsReadOnly="True" Grid.Row="1" Margin="0,0,0,15.25">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="是否使用" Binding="{Binding Status}"></DataGridTextColumn>
                    <DataGridTextColumn Header="答案" Binding="{Binding Result}"></DataGridTextColumn>
                    <DataGridTextColumn Header="拼音" Binding="{Binding Pinyin}"></DataGridTextColumn>
                    <DataGridTextColumn Header="描述" Binding="{Binding Describe}"></DataGridTextColumn>
                </DataGrid.Columns>
            </DataGrid>
            <Grid>
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFCFFC0" Offset="0"/>
                        <GradientStop Color="#FFFFE99E" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <TextBlock TextWrapping="Wrap" d:LayoutOverrides="Width" VerticalAlignment="Center" FontSize="16" FontFamily="Arial"><Run Text="横向词条列表"/></TextBlock>
                <Button x:Name="btnHModify" IsEnabled="False" Content="修改" HorizontalAlignment="Right" Margin="0,0,43,0"/>
                <Button x:Name="btnHAdd" Content="新增" HorizontalAlignment="Right" Margin="0,0,79,0"/>
                <Button x:Name="btnHDel" IsEnabled="False" Content="删除" HorizontalAlignment="Right" Margin="0,0,7,0"/>
            </Grid>
            <DataGrid x:Name="gridVWords" ItemsSource="{Binding}" AutoGenerateColumns="False" IsReadOnly="True" Grid.Row="2" Margin="0,24.75,0,1.846">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="是否使用" Binding="{Binding Status}"></DataGridTextColumn>
                    <DataGridTextColumn Header="答案" Binding="{Binding Result}"></DataGridTextColumn>
                    <DataGridTextColumn Header="拼音" Binding="{Binding Pinyin}"></DataGridTextColumn>
                    <DataGridTextColumn Header="描述" Binding="{Binding Describe}"></DataGridTextColumn>
                </DataGrid.Columns>
            </DataGrid>
            <Grid Height="24.75" Grid.Row="2" VerticalAlignment="Top">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF82D4FF" Offset="0"/>
                        <GradientStop Color="#FF9EA4FF" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <TextBlock TextWrapping="Wrap" d:LayoutOverrides="Width" VerticalAlignment="Center" FontSize="16" FontFamily="Arial"><Run Text="竖向词条列表"/></TextBlock>
                <Button x:Name="btnVModify" IsEnabled="False" Content="修改" HorizontalAlignment="Right" Margin="0,0,43,0"/>
                <Button x:Name="btnVAdd" Content="新增" HorizontalAlignment="Right" Margin="0,0,79,0"/>
                <Button x:Name="btnVDel" IsEnabled="False" Content="删除" HorizontalAlignment="Right" Margin="0,0,7,0"/>
            </Grid>
            <Button IsEnabled="False" Content="保存词条" HorizontalAlignment="Right" Height="30" Margin="0,4,85,0" Grid.Row="3" VerticalAlignment="Top" Width="77"/>
            <Button x:Name="btnLoadWordInfos" Content="载入词条" HorizontalAlignment="Right" Height="30" Margin="0,4,0,0" Grid.Row="3" VerticalAlignment="Top" Width="77"/>
            <TextBlock Grid.Row="3" TextWrapping="Wrap" Text="导入文件格式:0或1-答案-拼音-提示信息" Foreground="Red" Margin="0,10.31,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
        </Grid>
    </Grid>
</Window>
